package com.example.backend.service;


import com.example.backend.entity.User;

import java.util.List;

public interface UserService {
    boolean findByUsernameAndPassword(String username,String password);

    void insert(User user);

    boolean findByUsername(String username);

    User findUser (String username);

    List<User> findAll();

    List<User> findByPassword (String password);

    List<User> findById (Integer id);

    List<User> findByPermission(Integer permission);

    void delete(Integer id);
}
